package com.yuyang.wifi.utils;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;

import com.yuyang.wifi.activitys.web.WebViewActivity;


/**
 * Created by yang on 2017/8/28.
 */

public class Skip {

    public static void toActivity(Context context, Class<? extends Activity> clazz) {
        Intent intent = new Intent(context, clazz);
        context.startActivity(intent);

    }

    public static void toWebActivity(Context context, String title, String url) {
        Intent intent = new Intent(context, WebViewActivity.class);
        intent.putExtra("title", title);
        intent.putExtra("url", url);
        context.startActivity(intent);
    }

}
